import type { TableColumn } from '@/components/core/dynamic-table';

export type TableListItem = API.UserListPageResultItem;
export type TableColumnItem = TableColumn<TableListItem>;

const operationParams = [
  {
    label: '草稿',
    value: 1,
  },
  {
    label: '审核中',
    value: 2,
  },
  {
    label: '已审核',
    value: 3,
  },
];
const operationParams2 = [
  {
    label: '领用申请',
    value: 1,
  },
  {
    label: '退还申请',
    value: 2,
  },
];

export const baseColumns: TableColumn[] = [
  {
    title: '关键字',
    align: 'left',
    dataIndex: 'keyword',
    hideInTable: true,
    formItemProps: {
      labelWidth: 55,
      componentProps: () => {
        return {
          placeholder: '可输入设备编号、名称、维修人搜索',
          disabledLabelWidth: true,
        };
      },
    },
  },
  {
    title: '报告编号',
    align: 'left',
    dataIndex: 'userNum',
    hideInSearch: true,
  },
  {
    title: '报告名称',
    align: 'left',
    dataIndex: 'userLogin',
    hideInSearch: true,
  },
  {
    title: '所属项目',
    align: 'left',
    dataIndex: 'userName',
    hideInSearch: true,
  },
  {
    title: '合作公司',
    align: 'left',
    dataIndex: 'action',
    hideInSearch: true,
  },
  {
    title: '编制人',
    align: 'left',
    dataIndex: 'operationTime',
    hideInSearch: true,
  },
  {
    title: '完成时间',
    align: 'left',
    dataIndex: 'operationUser',
    hideInSearch: true,
  },
];
